<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <title>KISSY Tabs Demo</title>
    <link href="/kissy/src/css/assets/dpl/base.css" rel="stylesheet"/>
    <link href="../../src/menu/assets/dpl.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <h1>KISSY Tabs</h1>
</div>
<script src="/kissy/build/seed-debug.js"></script>
<script>
    KISSY.use('menu', function (S, Menu) {
        new Menu({
            width: 200,
            render: '.container',
            listeners: {
                "click": function (e) {
                    var h;
                    if (h = e.target.get("href")) {
                        window.open(h);
                    }
                }
            },
            children: [
                {
                    content: "dpl index",
                    href: 'demo/dpl/demo.html'
                },
                {
                    content: "build by new",
                    href: 'demo/dpl/simple.html'
                },
                {
                    content: "bottom tabs",
                    href: 'demo/dpl/bottom.html'
                },
                {
                    content: "build by markup",
                    href: 'demo/dpl/decorate.html'
                },
                {
                    content: "add and remove",
                    href: 'demo/dpl/dynamic.html'
                },
                {
                    content: "tabs in overlay",
                    href: 'demo/dpl/tabs-in-overlay.html'
                },
                {
                    content: "tabs in overlay xclass",
                    href: 'demo/dpl/tabs-in-overlay-xclass.html'
                },
                {
                    content: "tabs lazy render",
                    href: 'demo/dpl/lazy-render.html'
                }
            ]
        }).render();
    });
</script>
</body>
</html>